package com.auction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户")
@TableName(value = "user")
public class User {
   @TableId(value = "id",type = IdType.AUTO)
   private Integer id;
   private String name;
   private String pic;
   private int status;
   private String password;
   private String mobile;
   private int role_id;
   private int addr_id;
   private int sex;
   @TableField(exist = false)
   private String r_name;
   @TableField(exist = false)
   private String mobileCode;
   @TableField(exist = false)
   List<UserAddr> userAddrs;
}
